export function formatPhone(phone: string): string {
    /* 将空格进行替换 */
    let trim: string = phone.replace(/\s+/g, '');
    /* 将手机号进行分割 */
    const result = [
        trim.slice(0, 3),
        trim.slice(3, 7),
        trim.slice(7, 11),
    ].filter(item => !!item).join(' ')
    return result
};

export function replaceBlank(phone: string): string {
    return phone ? phone.replace(/\s+/g, '') : ''
}